﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SClientPlayerItemUpdate extends Object
    {
        public var updateType:int;
        public var fromPosType:int;
        public var updateAmount:int;
        public var playerItem:SPlayerItem;

        public function SClientPlayerItemUpdate()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.updateType);
            param1.writeShort(this.fromPosType);
            param1.writeShort(this.updateAmount);
            this.playerItem.__write(param1);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.updateType = param1.readByte();
            this.fromPosType = param1.readShort();
            this.updateAmount = param1.readShort();
            this.playerItem = new SPlayerItem();
            this.playerItem.__read(param1);
            return;
        }// end function

    }
}
